<?php
class work_highlight_model extends CI_Model
{
	function __construct(){
		parent::__construct();
	}
	function getAll()
	{
		$query = $this->db->get('work_hightlight');
		return $query->result();
	}
	function getById($workId)
	{
		$query = $this->db->where('id',$workId);
		$query = $this->db->get('work_hightlight');
		return $query->row();
	}
}
